package com.slipper.system.api.sequence.service;

import com.slipper.common.bo.Result;
import com.slipper.system.api.sequence.bo.SequenceBO;
import com.slipper.common.feign.ServiceClient;
import com.slipper.common.annotation.FeignRequestMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 
 * 
 * @date 2022-01-08 14:55:29
 */
@ServiceClient
public interface ISequenceSv {
    @FeignRequestMapping("/sequence/queryBy")
    Result<SequenceBO> queryBy(@RequestBody String id);
    
    @FeignRequestMapping("/sequence/queryPage")
    Result<List<SequenceBO>> queryPage(@RequestBody SequenceBO bo);
    
    @FeignRequestMapping("/sequence/save")
    Result<?> save(@RequestBody SequenceBO bo);
    
    @FeignRequestMapping("/sequence/delete")
    Result<?> delete(@RequestBody SequenceBO bo);

    @FeignRequestMapping("/sequence/getNextSequence")
    Result<String> getNextSequence(@RequestBody String flagId);
}
